package com.openideals.android.search;

import java.util.Hashtable;

import com.openideals.android.search.cruxy.CruxySearch;
import com.openideals.android.search.flickr.FlickrSearch;
import com.openideals.android.search.seeqpod.SeeqpodSearch;

/**
 * SearchManager provides access to implementations of the MediaSearchService interface.
 * 
 */
public class SearchManager {
	
	private static Hashtable<String, MediaSearchService> mssTable = null;
	
	
	public static MediaSearchService getService (String searchId)
	{
		MediaSearchService mss = null;
		
		
		return mss;
	}
	
	private static void init ()
	{
		mssTable = new Hashtable<String, MediaSearchService> ();
		
		MediaSearchService mss = new CruxySearch ();
		mssTable.put (mss.getServiceId(), mss);
		
		mss = new FlickrSearch ();
		mssTable.put (mss.getServiceId(), mss);
		
		mss = new SeeqpodSearch ();
		mssTable.put (mss.getServiceId(), mss);
		
	}
	
	{
		init();
	}
}
